Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for s-expressions and for WHERE limbs in DECIDE #404

Merged
merged 13 commits into from
Aug 1, 2023

Conversation

mengwong
Copy link
Contributor

@mengwong mengwong commented Aug 1, 2023

this branch was intended to result in a prolog transpiler but we ended up doing a bunch of preparatory work related to the encoding first.

mengwong and others added 13 commits July 21, 2023 19:05
    | x | IS | max of | foo |
    |   |    | AND    | bar |
it doesn't make sense to have a numeric result of > conjoined boolean-wise

        > foo
          bar
          baz
    AND < yo
          ho
          ho

so we should give a special case notion of a relationalpredicate to
allow specifically IS binding for implicit numeric types

DECIDE x IS > foo
              bar
              baz

and that in turn means we need to properly spell out a syntax for
mathematical expressions generally so we can do prefixed list
ops (rpnary) and infixed arithmetic
these are syntactic only, they have not been implemented semantically

we do allow SUBJECT TO in the position of an RPnary operator
@mengwong mengwong merged commit 5a2abf5 into main Aug 1, 2023
3 checks passed
@mengwong mengwong deleted the 20230721-prolog-semantics branch August 1, 2023 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant